﻿using System.Configuration;
using NUnit.Framework;

namespace Tests.APITests
{
    [TestFixture]
    public abstract class APITestBase
    {
        /// <summary>
        /// Gets the API token for the Camp Site tests
        /// </summary>
        protected string Username { get; private set; }

        /// <summary>
        /// Gets the base url for the Camp Site tests
        /// </summary>
        protected string Password { get; private set; }

        /// <summary>
        /// Gets the base url for the Camp Site tests
        /// </summary>
        protected string UrlFormat { get; private set; }        

        [SetUp]
        protected virtual void SetUp()
        {
            Username = ConfigurationManager.AppSettings["username"];
            Password = ConfigurationManager.AppSettings["password"];
            UrlFormat = ConfigurationManager.AppSettings["urlformat"];
        }
    }
}
